<?php

namespace App\Http\Controllers\UserApi;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\User;
use App\Services\Api\UserServices;

class UserController extends BaseController
{
    public function user_info(Request $request,User $user,UserServices $services){
        //dd(auth('api') -> user()->id);
        $data = $services->user_info(auth('api') -> user()->id,$user);
        return $this->success($data);
    }
}
